<!-- modal template -->
<div class="modal-header">
    <h4 class="modal-title" id="myModalLabel">用户注册</h4>
</div>
<form class="form-horizontal" name="userSignupForm" novalidate="novalidate">
    <div class="modal-body">
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-md-2 control-label require">账号</label>

                    <div class="col-md-4">
                        <input type="text" name="userAccount" class="input-sm form-control"
                               ng-model="userSignup.userAccount" ng-required="true"/>
                    </div>

                    <label class="col-md-2 control-label require">密码</label>

                    <div class="col-md-4 ">
                        <input type="password" name="userPassword" class="input-sm form-control"
                               ng-model="userSignup.userPassword" ng-required="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">座机</label>

                    <div class="col-md-4">
                        <input type="text" name="userTelephone" ng-pattern="/^([0-9]+)$/" class="input-sm form-control"
                               ng-model="userSignup.userTelephone"/>
                    </div>
                    <label class="col-md-2 control-label">手机</label>

                    <div class="col-md-4">
                        <input type="text" name="userMobile" ng-pattern="/^([0-9]+)$/" class="input-sm form-control"
                               ng-model="userSignup.userMobile"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">邮箱</label>

                    <div class="col-md-4">
                        <input type="text" name="email" ng-pattern="" class="input-sm form-control"
                               ng-model="userSignup.email"/>
                    </div>
                    
                    <label class="col-md-2 control-label">用户名称</label>

                    <div class="col-md-4">
                        <input type="text" name="userName" class="input-sm form-control" ng-model="userSignup.userName"/>
                    </div>                    
                </div>                
                
            </div>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
        <button type="submit" ng-disabled="userSignupForm.$invalid" class="btn btn-primary" ng-click="ok()">确认</button>
    </div>
</form>
